package cn.schoolwow.quickflow.listener;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public interface SingleFlowListener {
    /**
     * 执行业务逻辑之前
     */
    void beforeExecuteFlow(BusinessFlow flow, FlowContext flowContext) throws Exception;

    /**
     * 执行业务逻辑之后
     */
    void afterExecuteFlow(BusinessFlow flow, FlowContext flowContext) throws Exception;

    /**
     * 事件处理器名称
     */
    String name();
}
